package com.lovemanai.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * TeacherInfo entity. @author MyEclipse Persistence Tools
 */

public class TeacherInfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private Set<StuInfo> students = new HashSet<StuInfo>(0);

	// Constructors

	/** default constructor */
	public TeacherInfo() {
	}

	/** full constructor */
	public TeacherInfo(String name) {
		this.name = name;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<StuInfo> getStudents() {
		return students;
	}

	public void setStudents(Set<StuInfo> students) {
		this.students = students;
	}

}